package com.dj.ms.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <br>
 * <p>拦截器配置注解</p>
 *
 * <br>
 *
 * @author ZJG
 * @version 1.0
 * @date 2021/8/4 上午9:39
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Configuration
@Bean
@Order(Ordered.LOWEST_PRECEDENCE-1)
public @interface Interceptor {

    String[] includePath() default {};

    String[] excludePath() default {};

    int order() default  Ordered.LOWEST_PRECEDENCE - 1;
}
